//
//  SLNewNetMgr.h
//  SoccerLottery
//
//  Created by chuanshuangzhang on 15/12/24.
//  Copyright © 2015年 chuanshuangzhang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SLNewNetMgr : NSObject

/**
 *  获取单个推荐信息
 *
 *  @param type        类型 1：免费  2：心水
 *  @param recommendId 推荐ID
 *  @param block       回调
 */

+(void)getRecommend:(NSString *)type
        recommendId:(NSString *)recommendId
              block:(RequestCallBackBlock)block;

/**
 *  获取推荐列表
 *
 *  @param type      类型
 *  @param pageCount 页数
 *  @param pageNum   页码
 *  @param block     回调
 */
+ (void)getRecommend:(NSString *)userId
                type:(NSString *)type
           pageCount:(NSString *)pageCount
           pageIndex:(NSString *)pageNum
               block:(RequestCallBackBlock)block;


/**
 *  修改金币
 *
 *  @param userId      用户ID
 *  @param coins       金币，充值传正数，看推介传负数
 *  @param recommendId 看推介，需要传推介ID
 *  @param block       回调
 */
+ (void)setCoins:(NSString *)userId
           coins:(NSString *)coins
     recommandId:(NSString *)recommendId
           block:(RequestCallBackBlock)block;

/**
 *  获取图片
 *
 *  @param block 回调
 */
+ (void)getPicture:(RequestCallBackBlock)block;

/**
 *  IOS内购
 *
 *  @param userId  用户ID
 *  @param receipt 购买凭证
 *  @param block   回调
 */
+ (void)payCheck:(NSString *)userId
         receipt:(NSString *)receipt
           block:(RequestCallBackBlock)block;


@end
